/**
 * 
 */
package com.google.code.onlineshopping4j.exception;

/**
 * @author TelmilaJ
 *
 */
public class OnlineShoppingException extends Exception {

	private static final long serialVersionUID = 508809572630045769L;
	private ErrorCode errorCode;
	
	public OnlineShoppingException(ErrorCode errorCode, Throwable throwable) {
		super(errorCode.getErrorPropertyKey(), throwable);
		this.errorCode = errorCode;
	}
	public OnlineShoppingException(ErrorCode errorCode) {
		super();
		this.errorCode = errorCode;
	}
	public ErrorCode getErrorCode() {
		return errorCode;
	}
}
